package cn.zyg.ymcc.enums;

import lombok.Getter;

@Getter
public enum GlobalExceptionCode {
    OK("成功","0"),
    ERROR("失败","0-1"),
    PARAM_IS_NULL("参数不能为空","10001"),
    PHONE_FORMAT_ERROR("手机格式错误","50001"),
    OPERATING_FREQUENTLY_ERROR("操作过于频繁","10002"),
    CODE_IS_NULL_ERROR("验证码不能为空","50002"),
    CODE_ERROR("验证码错误","50003"),
    USER_EXISTED_ERROR("用户已被注册","30001"),
    USER_SAVE_ERROR("用户保存失败","40001"),
    IMAGECODE_IS_NOT_NULL("图片验证码不能为空！","50004"),
    IMAGECODE_OUTTIME("图形验证码过期，请重新获取","50005"),
    IMAGECODE_ERROR("图形验证码错误，请重新输入","50006");
    private String message;
    private String code;

    GlobalExceptionCode(String message, String code) {
        this.message = message;
        this.code = code;
    }
}
